package com.seed.core.table.entity;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author gchiaway
 * 日期: 2020-05-31
 * 时间: 16:13
 */
public class DataBaseTableRowMapper implements RowMapper<DataBaseTable> {
    @Override
    public DataBaseTable mapRow(ResultSet resultSet, int i) throws SQLException {
        DataBaseTable dataBaseTable = new DataBaseTable();
        dataBaseTable.setTableName(resultSet.getString("tableName"));
        dataBaseTable.setTableComment(resultSet.getString("tableComment"));
        return dataBaseTable;
    }
}